package com.lk.base.rest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("${api}")
public class IndexController {

	Logger logger = LoggerFactory.getLogger(this.getClass());

	@GetMapping("/sendMQ")
	@ResponseBody
	public String sendMQ(String message) {
		return "ok";
	}

	@RequestMapping("index")
    public String toIndex()
    {
        return "index";
    }

	@RequestMapping("jiku")
	public String jiku()
	{
		return "jiku";
	}

	@RequestMapping("device")
	public String device()
	{
		return "device";
	}
}
